package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BarcodeDoctypeMappingMapper;
import com.ruoyi.system.domain.BarcodeDoctypeMapping;
import com.ruoyi.system.service.IBarcodeDoctypeMappingService;

/**
 * 单据类型映射Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-27
 */
@Service
public class BarcodeDoctypeMappingServiceImpl implements IBarcodeDoctypeMappingService 
{
    @Autowired
    private BarcodeDoctypeMappingMapper barcodeDoctypeMappingMapper;

    /**
     * 查询单据类型映射
     * 
     * @param id 单据类型映射主键
     * @return 单据类型映射
     */
    @Override
    public BarcodeDoctypeMapping selectBarcodeDoctypeMappingById(Long id)
    {
        return barcodeDoctypeMappingMapper.selectBarcodeDoctypeMappingById(id);
    }

    /**
     * 查询单据类型映射列表
     * 
     * @param barcodeDoctypeMapping 单据类型映射
     * @return 单据类型映射
     */
    @Override
    public List<BarcodeDoctypeMapping> selectBarcodeDoctypeMappingList(BarcodeDoctypeMapping barcodeDoctypeMapping)
    {
        return barcodeDoctypeMappingMapper.selectBarcodeDoctypeMappingList(barcodeDoctypeMapping);
    }

    /**
     * 新增单据类型映射
     * 
     * @param barcodeDoctypeMapping 单据类型映射
     * @return 结果
     */
    @Override
    public int insertBarcodeDoctypeMapping(BarcodeDoctypeMapping barcodeDoctypeMapping)
    {
        return barcodeDoctypeMappingMapper.insertBarcodeDoctypeMapping(barcodeDoctypeMapping);
    }

    /**
     * 修改单据类型映射
     * 
     * @param barcodeDoctypeMapping 单据类型映射
     * @return 结果
     */
    @Override
    public int updateBarcodeDoctypeMapping(BarcodeDoctypeMapping barcodeDoctypeMapping)
    {
        return barcodeDoctypeMappingMapper.updateBarcodeDoctypeMapping(barcodeDoctypeMapping);
    }

    /**
     * 批量删除单据类型映射
     * 
     * @param ids 需要删除的单据类型映射主键
     * @return 结果
     */
    @Override
    public int deleteBarcodeDoctypeMappingByIds(Long[] ids)
    {
        return barcodeDoctypeMappingMapper.deleteBarcodeDoctypeMappingByIds(ids);
    }

    /**
     * 删除单据类型映射信息
     * 
     * @param id 单据类型映射主键
     * @return 结果
     */
    @Override
    public int deleteBarcodeDoctypeMappingById(Long id)
    {
        return barcodeDoctypeMappingMapper.deleteBarcodeDoctypeMappingById(id);
    }
}
